<#include "/public/secfield.html">
<div class="layui-side layui-bg-black layui-left-black">
	<div class="layui-side-scroll" id="agentusers">
		<div class="row">
			<div class="col-lg-12">
				<h1 class="site-h1">
						<#if contacts?? && contacts.ctype=='contacts'>联系人<#elseif contacts?? && contacts.ctype=='customer'>客户</#if>概况
				</h1>
				<div class="row">
					<div class="col-lg-12">
					  	<div id="ukefu_discaller" class="ukefu_discaller">
					    	<#include "/apps/business/contacts/include/viewleft.html">
					    </div>
					</div>
				</div>
			</div>
		</div>
		<!-- <div class="row">
			<div class="col-lg-12">
				<div class="box">
					<div class="box-title">
						<h1 class="site-h1" style="background-color:#EEEEEE;">
							标签
							<span style="float:right;">
								<button class="layui-btn layui-btn-sm green" data-toggle="ajax" href="/apps/callcenter/record/fixrecord.html?id=" data-width="750" data-height="350">
									添加
								</button>
							</span>
						</h1>
					</div>
					<div class="box-body" style="padding:0px 10px;" id="ukefu_contacts_info">
					</div>
				</div>
			</div>
		</div> -->
		<div class="row">
			<div class="col-lg-12">
				<div class="box">
					<div class="box-title">
						<h1 class="site-h1" style="background-color:#EEEEEE;">
							通话信息
						</h1>
					</div>
					<div class="box-body" style="padding:0px 10px;">
						<ul class="info-list">
							<li>
								最后拨打时间：<#if contacts?? && contacts.calltime?? && contacts.calltime!=null && contacts.calltime!=0>${contacts.calltime?number_to_datetime}</#if>
							</li>
							<li>
								拨打状态：<#if contacts?? && contacts.callstatus?? && contacts.callstatus=='called'>已拨打<#else>未拨打</#if>
							</li>
							<li>
								拨打结果：<#if contacts?? && contacts.workstatus?? && contacts.workstatus == "success">拨打成功<#elseif contacts?? && contacts.workstatus?? && contacts.workstatus == "faild">拨打失败</#if>
							</li>
							<li>
								首次拨打时间：<#if contacts?? && contacts.firstcalltimes?? && contacts.firstcalltimes!=null && contacts.firstcalltimes!=0>${contacts.firstcalltimes?number_to_datetime}</#if>
							</li>
							<li>
								首次拨打结果：<#if contacts?? && contacts.firstcallstatus?? && contacts.firstcallstatus=='success'>拨打成功<#elseif contacts?? && contacts.firstcallstatus?? && contacts.firstcallstatus == "faild">拨打失败</#if>
							</li>
							<li>
								拨打次数：<#if contacts??>${contacts.calltimes!'0'}</#if>
							</li>
							<li>
								成功拨打次数：<#if contacts??>${contacts.succcall!'0'}</#if>
							</li>
							<li>
								失败拨打次数：<#if contacts??>${contacts.faildcall!'0'}</#if>
							</li>
							<#if contacts?? && contacts.reservation == true>
							<li>
								预约：<i class="layui-icon" style="color:#19a55d;">&#xe605;</i>
							</li>
							<#if contacts?? && contacts.optime??>
							<li>
								预约时间：${contacts.optime?string('yyyy-MM-dd HH:mm:ss')}
							</li>
							</#if>
							<li>
								预约备注：${contacts.salesmemo!''}
							</li>
							</#if>
							<#if contacts?? && contacts.owneruser??>
							<li>
								已分配：<i class="layui-icon" style="color:#19a55d;">&#xe605;</i>
							</li>
							</#if>
							<#if contacts?? && contacts.processed??>
							<li>
								预约已通知：<i class="layui-icon" style="color:#19a55d;">&#xe605;</i>
							</li>
							</#if>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-lg-12">
				<div class="box">
					<div class="box-title">
						<h1 class="site-h1" style="background-color:#EEEEEE;">
							联系人关系
							<span style="float:right;">
								<button class="layui-btn layui-btn-sm green" data-toggle="ajax" href="/apps/contacts/relate.html?contactsid=${contacts.id!''}" data-width="950" data-height="650">
									添加
								</button>
							</span>
						</h1>
					</div>
					<div class="box-body" style="padding:0px 10px;" id="ukefu_contacts_relist">
						<#include "/apps/business/contacts/include/relist.html">
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="layui-body ukefu-chat-agent" id="ukefu-chat-agent">
	<#include "/apps/business/contacts/include/viewright.html">
</div>
